|
i2crepeater 2.2.0
|
I2C Repeater Click example. More...
Macros | |
| #define | DEVICE_NAME "6DOF IMU 11 Click" |
| #define | DEVICE_SLAVE_ADDRESS 0x0E |
| #define | DEVICE_REG_ID 0x00 |
| #define | DEVICE_ID 0x2D |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
I2C Repeater Click example.
This example demonstrates the communication through the I2C Repeater Click board. It initializes the device, sets the slave I2C address of an external I2C sensor (e.g. 6DOF IMU 11 Click), and reads its device ID register, verifying if the expected ID is returned.
The demo application is composed of two sections :
Initializes the logger and the I2C Repeater Click, then enables the device.
Sets the I2C address of a connected I2C sensor and reads its device ID, then logs whether the returned ID matches the expected value.
| #define DEVICE_ID 0x2D |
| #define DEVICE_NAME "6DOF IMU 11 Click" |
| #define DEVICE_REG_ID 0x00 |
| #define DEVICE_SLAVE_ADDRESS 0x0E |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |